package cn.hnu.qq.entity.message;

import cn.hnu.qq.global.MessageType;


public class LogonMessage  extends Message {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	

	private String userName;
	
	private String password;

	
	private Integer clientListenPort;
	
	
	public LogonMessage(){
		setMessageType(MessageType.LOGON);
	}
	
	public String getUserName() {
		return userName;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	@Override
	public String toString() {
		return "userName:"+userName+"\tpassword:"+password;
	}

	public Integer getClientListenPort() {
		return clientListenPort;
	}

	public void setClientListenPort(Integer clientListenPort) {
		this.clientListenPort = clientListenPort;
	}
	
	
	
}
